package com.ecut.property_project.service.project;

import com.ecut.property_project.mapper.project.ProjectPurposeMapper;
import com.ecut.property_project.model.project.ProjectPurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectPurposeService{

    @Resource
    private ProjectPurposeMapper projectPurposeMapper;

    
    public int deleteByPrimaryKey(Integer purposeId) {
        return projectPurposeMapper.deleteByPrimaryKey(purposeId);
    }

    
    public int insert(ProjectPurpose record) {
        return projectPurposeMapper.insert(record);
    }

    
    public int insertSelective(ProjectPurpose record) {
        return projectPurposeMapper.insertSelective(record);
    }

    public List<ProjectPurpose> selectAll(){ return projectPurposeMapper.selectAll(); }

    public List<ProjectPurpose> selectByPage(Integer page, Integer pageSize){return projectPurposeMapper.selectByPage(page,pageSize);}

    public ProjectPurpose selectByPrimaryKey(Integer purposeId) {
        return projectPurposeMapper.selectByPrimaryKey(purposeId);
    }
    public List<ProjectPurpose> selectByHeadId(String headId){
        return projectPurposeMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ProjectPurpose record) {
        return projectPurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ProjectPurpose record) {
        return projectPurposeMapper.updateByPrimaryKey(record);
    }

}
